package org.apache.dubbo.engine.filter;

import org.apache.dubbo.rpc.Filter;
import org.apache.dubbo.rpc.Invocation;
import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.Result;
import org.apache.dubbo.rpc.RpcException;

/**
 * @author liangcai_zhu
 * @Description TODO
 * @Date 2019/12/17 20:31
 */
public class ZYFilter implements Filter {

  public static final String NAME = "zyfilter";

  @Override
  public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
    String key = invoker.getInterface().getName() + "." + invocation.getMethodName();
    System.out.println(key+"这里过滤器");
    return invoker.invoke(invocation);
  }
}
